<?php
class Student_gpaControllerTest extends ControllerTestCase{

    public function testUnauthorizedUserRedirectedToLoginPage(){

        $this->dispatch('/student/gpa/');
        $this->assertQuery('form#login');
    }

    public function testAuthorizeduserCanSeegpaStartMenu(){
        $this->request->setMethod('POST')->setPost(array(
            'username' => 'khilson',
            'password' => 'sonic'
        ));

        $this->dispatch('student/gpa');
    }


}

?>